<?php 
defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_('behavior.modal', 'a.modal');
?>

<div id="editcell">
    <table class="adminlist">
      <thead>
        <tr>
          <th width="20%">Date</th>
          <th width="40%">User number</th>
          <th width="40%">Guest number</th>
        </tr>
      </thead>
      <?php
	$k = 0;
	for ($i=0, $n=count( $this->lists); $i < $n; $i++)
	{	
		$row = &$this->lists[$i];
		$checked 	 = JHTML::_('grid.id',   $i, $row->id );
		$link 		 = JRoute::_( 'index.php?option=com_auction&task=edit&cid[]='. $row->id );
		?>
      <tr class="<?php echo "row$k"; ?>">
        <td align="center"><?php echo $row->log_date; ?></td>
        <td align="center"><strong><?php echo $row->userNum; ?></strong> <a class="modal" rel="{handler: 'iframe', size: {x: 500, y: 340}}" href="../index.php?option=com_ecommerce&view=detail&layout=statistics&tmpl=component&date=<?php echo $row->log_date;?>"> (Click here to view detail)</a></td>
        <td align="center"><strong><?php echo $row->guestNum; ?></strong></td>
      </tr>
      <?php
		$k = 1 - $k;
	}
	?>
      <tr>
        <td colspan="3"><?php echo $this->page->getListFooter(); ?> </td>
      </tr>
    </table>
</div>